package com.cn.applet;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;

/**
 * 处理 事务：
 * 	1.@EnableTransactionManagement 注解 与 @Transaction 联合使用
 * 	2.增加TransactionManagement 托管 dataSource 
 * 
 * */
@SpringBootApplication(scanBasePackages = {"com.cn.applet"})
@EntityScan(basePackages = "com.cn.applet")
@MapperScan("com.cn.applet.dao.mapper")
public class AppletApplication {

	public static void main(String[] args) {
		SpringApplication.run(AppletApplication.class, args);
	}
}
